home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / TPWENG / TBLCOPY.PAS < prev    next >
Pascal/Delphi Source File  |  1991-07-22  |  420b  |  24 lines

  1. program TblCopy;
  2. uses PXEngine, WinCrt;
  3.  
  4. const SourceTable = 'Table1';
  5.       DestTable   = 'Table2';
  6.  
  7. var   PxErr: Integer;
  8.  
  9. procedure PX(Code : integer);
  10. begin
  11.   writeln(PXErrMsg(Code));
  12. end;
  13.  
  14. begin
  15.   PX(PXWinInit('MyApp', pxShared));
  16.  
  17.   (* Copy one table to another *)
  18.   PxErr := PXTblCopy(SourceTable, DestTable);
  19.   if PxErr <> PxSuccess then
  20.     Writeln(PXErrMsg(PxErr));
  21.  
  22.   PX(PXExit);
  23. end.
  24.